{{define "nav"}}
    <nav class="navbar navbar-expand-md bg-dark navbar-dark" style="position: static">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <a class="navbar-brand" href="/">
                        <h3><i class="fab fa-maxcdn"></i></h3>
                    </a>
                </div>
            </div>

        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="collapsibleNavbar">
            <ul class="navbar-nav" id="navbar-show">
                <li class="nav-item">
                    <a class="nav-link" href="/formula">公式</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/examQuestion">试题</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#">商城</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="https://github.com/realnudao/nudao-education-api-document">API</a>
                </li>
                {{/*平时显示*/}}
                <li class="navbar-nav-search search-show-big">
                    <form class="form-inline" method="post" action="/search">
                        <input type="search" class="form-control navbar-nav-search-input"  name="searchValue" id="email" style="width: 300px;display: inline" placeholder="搜索公式试题等，例如：乘法分配律">
                    </form>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#"></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="#"></a>
                </li>
                <li>
                    {{/*注册*/}}
                    <a class="nav-link" href="/signUp" id="zhuce">{{.signUpStatus}}</a>
                </li>
                <li>
                    {{/*登陆*/}}
                <a class="nav-link" href="/signIn">{{.signInStatus}}</a>
                </li>
                <li>
                    {{/*登出*/}}
                    <a class="nav-link" href="/signOut">{{.signOutStatus}}</a>
                </li>
            </ul>
            <div class="tiaojie">
                {{template "text_left".}}
            </div>
        </div>
        </div>
    </nav>
{{end}}